home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / graphics / gnuplot / makefile.st < prev    next >
Makefile  |  1993-05-11  |  4KB  |  148 lines

  1. #
  2. # $Id: makefile.atari 3.38.2.21 1992/11/24 16:22:20 woo Exp $
  3. #
  4.  
  5. #
  6. # GNUPLOT makefile for GCC-ST 1.x and 2.x
  7. # in a cross development environment (unix) or a native TOS environment
  8. # (see configuration section)
  9. #
  10. # Modified from the BorlandC makefile by Alexander Lehmann
  11. #
  12.  
  13. # -------------------- begin of configuration section -----------------------
  14.  
  15. # CC is name of compiler producing TOS executables
  16. # HOSTCC is the name of the native compiler
  17. # SL is the path separator (/ for unix or UNIXMODE, \ for standard TOS)
  18.  
  19. # settings for crosscompiling:
  20. CC = cgcc
  21. #HOSTCC = gcc
  22. HOSTCC = cc
  23. SL=/
  24.  
  25. # settings for native compiling:
  26. #CC = gcc
  27. #HOSTCC = $(CC)
  28. #SL=\ 
  29.  
  30. # -O means optimisation in general
  31. #  o-f-p avoids link-unlink instructions
  32. #  s-r     optimisation of loops and elimination of iterations variables
  33. #  c-r     improve register movement
  34. # if you have GCC 2.x (and time), you can choose the -O2 option
  35.  
  36. # first line for GCC 1.x, second and third for GCC 2.x
  37.  
  38. #OPTFLAGS = -O -fomit-frame-pointer -fstrength-reduce -fcombine-regs
  39. OPTFLAGS = -O -fomit-frame-pointer -fstrength-reduce
  40. #OPTFLAGS = -O2 -fomit-frame-pointer
  41.  
  42. # -c means don't link
  43. # -DREADLINE to use the history/line editing capability. If you want this 
  44. #    capability add -DREADLINE to CFLAGS (currently on)
  45.  
  46. CFLAGS = -c $(OPTFLAGS) -DATARI -DREADLINE -DPIPES
  47. TERMFLAGS =
  48.  
  49. # where to place gnuplot.gih helpfile
  50. # if this is an absolute pathname, shel_find will not be used.
  51. HELPFILE=gnuplot.gih
  52.  
  53. # -------------------- end of configuration section -------------------------
  54.  
  55. OBJS =     bitmap.o command.o contour.o eval.o graphics.o graph3d.o gnubin.o\
  56.     help.o internal.o misc.o parse.o plot.o readline.o scanner.o\
  57.     setshow.o specfun.o standard.o term.o util.o version.o binary.o
  58.  
  59. # path prefix for the term subdirectory
  60. TERM=term$(SL)
  61.  
  62. TERMS = $(TERM)atari.trm $(TERM)dumb.trm $(TERM)eepic.trm $(TERM)epson.trm \
  63.     $(TERM)hpgl.trm $(TERM)hpljii.trm $(TERM)hppj.trm $(TERM)latex.trm \
  64.     $(TERM)pbm.trm $(TERM)post.trm $(TERM)texdraw.trm
  65.  
  66. all: gnuplot.ttp $(HELPFILE) demo$(SL)bf_test.tos
  67.  
  68. gnuplot.ttp: $(OBJS)
  69.     $(CC) -o $@ $(OBJS) -lpml -lgem
  70.     fixstk 80k $@
  71. #    strip -k $@        # you might want to add strip here
  72.  
  73. # to run the bivariat demo ca. 75k stack is needed, all others work with ca. 32k
  74.  
  75. # default rules
  76.  
  77. %.o: %.c
  78.     $(CC) -o $@ $(CFLAGS) $<
  79.  
  80. # dependencies
  81.  
  82. bitmap.o: bitmap.c bitmap.h plot.h
  83.  
  84. binary.o: binary.c plot.h
  85.  
  86. command.o: command.c plot.h setshow.h help.h
  87.     $(CC) -o $@ $(CFLAGS) -DHELPFILE=\"$(HELPFILE)\" $<
  88.  
  89. contour.o: contour.c plot.h
  90.  
  91. eval.o: eval.c plot.h
  92.  
  93. graphics.o: graphics.c plot.h setshow.h
  94.  
  95. graph3d.o: graph3d.c plot.h setshow.h
  96.  
  97. gnubin.o: gnubin.c plot.h setshow.h
  98.  
  99. help.o: help.c help.h
  100.  
  101. internal.o: internal.c plot.h
  102.  
  103. misc.o: misc.c plot.h setshow.h help.h
  104.  
  105. parse.o: parse.c plot.h
  106.  
  107. plot.o: plot.c plot.h setshow.h
  108.  
  109. readline.o: readline.c
  110.  
  111. scanner.o: scanner.c plot.h
  112.  
  113. setshow.o: setshow.c plot.h setshow.h
  114.  
  115. specfun.o: plot.h specfun.c
  116.  
  117. standard.o: standard.c plot.h
  118.  
  119. term.o: term.c term.h plot.h setshow.c bitmap.h $(TERMS)
  120.     $(CC) -o $@ $(CFLAGS) $(TERMFLAGS) -Iterm term.c
  121.  
  122. util.o: util.c plot.h
  123.  
  124. version.o: version.c
  125.  
  126. # convert gnuplot.doc to gnuplot.gih
  127. $(HELPFILE): doc2gih docs$(SL)gnuplot.doc
  128.     doc2gih docs$(SL)gnuplot.doc $(HELPFILE)
  129.  
  130. doc2gih: docs$(SL)doc2gih.c
  131.     $(HOSTCC) -o doc2gih docs$(SL)doc2gih.c
  132.  
  133. demo$(SL)bf_test.tos: bf_test.o binary.o
  134.     $(CC) -s -o $@ bf_test.o binary.o -lpml
  135.  
  136. clean:            # remove temporary files, but leave executable intact
  137.     rm -f $(OBJS) bf_test.o doc2gih
  138.  
  139. realclean: clean    # remove all files generated by make
  140.     rm -f gnuplot.ttp gnuplot.gih demo$(SL)binary1 demo$(SL)binary2
  141.     rm -f demo$(SL)binary3 demo$(SL)bf_test.tos
  142.  
  143. # empty rules for file extensions (some makes might need this)
  144. %.trm:
  145.  
  146. %.doc:
  147.  
  148.